﻿using mediaPrime.Controls;

namespace mediaPrime.Plugin.SystemManagement.Dialogs
{
    /// <summary>
    /// Interaktionslogik für CustomSettingsDialog.xaml
    /// </summary>
    public partial class CustomSettingsDialog : MPDialog
    {
        private mediaPrime.Sdk.CustomSettingsDialog userControl;
        public CustomSettingsDialog(mediaPrime.Sdk.CustomSettingsDialog userControl)
        {
            InitializeComponent();

            this.userControl = userControl;
            this.userControl.DialogResultChanged += userControl_DialogResultChanged;

            this.gridMain.Children.Add(this.userControl);


        }

        void userControl_DialogResultChanged(object sender, System.EventArgs e)
        {
            DialogResult = userControl.DialogResult;
        }
    }
}
